<template>
  <div class="home">
    <myMap>
      <template slot="header">哈哈哈哈</template>
      <p slot="footer">我是footer的具名插槽</p>
    </myMap>
      <input  @focus="testFocus($event)">
      <div class="coverBox"></div>
  </div>
</template>

<script>
import myMap from '@/components/myMap.vue'

export default {
  name: 'Home',
  components: {
    myMap
  },
  methods:{
    testFocus(e){
      console.log(e)
    }
  }
}
</script>

<style>
  .coverBox{
    position: absolute;
    width: 100%;
    height: 100%;
  }
</style>